<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class NewsVideoModel extends Model
{
    use HasFactory;
    protected $table='news_video';
    protected $primaryKey='video_id';
    //一对一查询对应用户的信息
    function issueUserInfo(){
        return $this->hasOne(UserModel::class,'user_id','user_num');
    }
}
